export default {
  namespaced: true,
  state() {
    return {
      counter: 5
    }
  },
  getters: {
    doubleCounter(state) {
      return state.counter * 2
    }
  },
  mutations: {
    add(state) {
      state.counter++
    }
  },
  actions: {
    addAction(context) {
      context.commit("add")
    }
  }
}